<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>订单结算页 - <{$config.company}> - Powered by Mallbuilder</title>
<meta name="description" content="<{$config.description|regex_replace:"/[\r\t\n]/":""}>" />
<meta name="keywords" content="<{$config.keyword|regex_replace:"/[\r\t\n]/":""}>" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link type="text/css" rel="stylesheet" href="<{$config.weburl}>/module/product/templates/shop.css">
<script src="<{$config.weburl}>/script/jquery-1.4.4.min.js" type=text/javascript></script>
<script src="<{$config.weburl}>/script/order.js" type=text/javascript></script>
<script type="text/javascript" charset="utf-8" src="<{$config.weburl}>/script/district.js" ></script>
<script type="text/javascript" src="<{$config.weburl}>/script/jquery.checkout.js"></script>
<script>
var weburl="<{$config.weburl}>";
</script>
</head>
<div id="shortcut">
    <div class="w">
        <ul class="fl">
            <li><a class="Thome" href="javascript:setHomepage('<{$config.weburl}>');" style=" background:url(<{$config.weburl}>/image/default/home.gif) no-repeat left center; padding-left:20px;" >设为首页</a></li>
            <li style="padding:0px;">|</li>
            <li><a href="#" onclick="window.external.addFavorite('<{$config.weburl}>','<{$config.keyword}>')" style="background:url(<{$config.weburl}>/image/default/add.gif) no-repeat left center; padding-left:20px;">添加收藏</a></li>
        </ul>
        <div class="fr">
            <script src="<{$config.weburl}>/login_statu.php"></script>
            <a href="<{$config.weburl}>/main.php?m=product&s=admin_buyorder">我的订单</a>
        </div>
    </div>
</div>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="header w">
    <div class="logo">
        <a href="<{$config.weburl}>"><img src="<{if $config.logo}><{$config.logo}><{else}><{$config.weburl}>/image/logo.png<{/if}>" /></a>
    </div>
    <div class="progress">
        <ul class="progress-2">
            <li class="step-1"><b></b><a href="<{$config.weburl}>/?m=product&s=shop_cart">1.我的购物车</a></li>
            <li class="step-2"><b></b>2.填写核对订单信息</li>
            <li class="step-3">3.成功提交订单</li>
        </ul>
        <div class="clear"></div>
    </div>
    <div class="clear"></div>
</div>
    
<div class="order w">
    <div class="order_title"><h3>填写核对订单信息</h3></div>
    <div class="order_info">
    	<div id="step-1" class="step">
        	<div class="step-title">
            	<strong>收货人信息</strong>
                <span class="step-action" id="consignee_edit_action">
                	<a onclick="open_Module('consignee')" href="#none">[修改]</a>
                </span>
            </div>
        	<div class="step-content">
            	<div id="consignee">
                   <p><{$consignee.name}>&nbsp;&nbsp;<{$consignee.mobile}>&nbsp;&nbsp;<{$consignee.tel}></p>
                    <p><{$consignee.area}> <{$consignee.address}></p>
                </div>
           	</div>
        </div>
    	<div id="step-2" class="step">
        	<div class="step-title">
            	<strong>配送与支付方式</strong>
                <span class="step-action" id="payment_edit_action">
                	<a onclick="open_Module('payment')" href="#none">[修改]</a>
                </span>
            </div>
        	<div class="step-content">
            	<div id="payment">
                	<p><{$ship.title}></p>
                	<p><{$pay.payment_name}></p>
                </div>
            </div>
        </div>
    	<div id="step-3" class="step">
        	<div class="step-title">
            	<strong>发票信息</strong>
                <span class="step-action" id="invoice_edit_action">
                	<a onclick="open_Module('invoice')" href="#none">[修改]</a>
                </span>
            </div>
        	<div class="step-content">
            	<div id="invoice">
                    <p>
                    <{foreach item=v key=num from=$lang.itype}><{if $num==$invoice.type}><{$v}><{/if}><{/foreach}>
                    <{foreach item=v key=num from=$lang.irise}><{if $num==$invoice.rise}><{$v}><{/if}><{/foreach}>
                    <{foreach item=v key=num from=$lang.icontent}><{if $num==$invoice.content}><{$v}><{/if}><{/foreach}>
                    </p>
                </div>
            </div>
        </div>
    	<div id="step-4" class="step">
        	<div class="step-title">
            	<strong>产品清单</strong>
            </div>
        	<div class="step-content">
                <table width="100%" class="order_product">
                    <tr>
                        <th width="55%" align="left">&nbsp;&nbsp;产品名称</th>
                        <th width="14%">单价</th>
                        <th width="7%">数量</th>
                        <th width="14%">小计</th>
                    </tr>
                    <{foreach item=list from=$cart.cart}>
                    <{foreach item=pro from=$list.prolist}>
                    <tr>
                        <td class="al vt">
                        <div class="fl">
                        <img src="<{$pro.pic}>_60X60.jpg">
                        </div>
                        <div class="fl ml20">
                        <a target="_blank" href="<{$config.weburl}>/?m=product&s=detail&id=<{$pro.pid}>"><{$pro.pname}></a><p>产品编号：<{$pro.code}></p>
                        </div>
                        </td>
                        <td><{$config.money}><{$pro.price|number_format:2}>元</td>
                        <td>x<{$pro.num}></td>
                        <td><{$config.money}><{$pro.sumprice|number_format:2}>元</td>
                    </tr>
                    <{/foreach}>
                    <{if $pro.service ||  $pro.product_give}>
                    <tr class="other">
                        <td colspan="3">
                        <{if $pro.product_give}>
                        <dl>
                            <dt>[赠品]</dt>
                            <dd>
                                <ul>
                                    <{foreach item=slist from=$pro.product_give}>
                                        <li><{$slist.pname}></li>
                                    <{/foreach}>
                                </ul>
                            </dd>
                        </dl>
                        <{/if}>
                        <{if $pro.service}>
                        <dl>
                            <dt>[服务]</dt>
                            <dd>
                                <ul>
                                    <{foreach item=slist from=$pro.service}>
                                        <li>
                                        <{$slist.name}>
                                        <span><{$config.money}><{$slist.price}></span>
                                        </li>
                                    <{/foreach}>
                                </ul>
                            </dd>
                        </dl>
                        <{/if}>
                        </td>
                        <td colspan="4"></td>
                    </tr>
                    <{/if}>
                    <{/foreach}>
                </table>
                <div class="order_summary">
                	<div class="fl">
                    	<div>重量总计：<{$cart.weight}>kg</div>
                    </div>
                    <div class="statistic">
                    	<div class="list">
                        	<span><em><{$cart.cart.0.prolist|@count}></em> 件产品，总产品金额：</span>
                            <span class="price"><{$config.money}><v id="price1"><{$cart.sumprice|number_format:2}></v></span>
                        </div>
                        <div class="list">
                        	<span>运费：</span>
                            <span class="price"><{$config.money}><v id="price2"><{$ship.price|number_format:2}></b></span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="order_buttons" id="order_buttons">
        <form action="" method="post">
       		<input type="hidden" name="act" value="order" />
        	<input type="submit" value="" class="order_submit">
            <input type="hidden" name="h_emsumprice" id="h_emsumprice"  value=""/>
            
            <input type="hidden" name="h_sumprice" id="h_sumprice" value="<{$cart.sumprice}>"/>
            <input type="hidden" id="weight" value="<{$cart.weight}>"/>
            <input type="hidden" id="city" value="<{$consignee.cityid}>"/>
            
            <input type="hidden" name="hidden_invoice_id" id="hidden_invoice_id" value="<{$invoice.id}>"/>
            <input type="hidden" name="hidden_consignee_id" id="hidden_consignee_id" value="<{$consignee.id}>" />
            
            <input type="hidden" name="hidden_payment_id" id="hidden_payment_id" value="<{$pay.payment_id}>" />
            <input type="hidden" name="hidden_ship_id" id="hidden_ship_id" value="<{$ship.id}>" />
            <span class="total">应付总额：<strong><{$config.money}><span id="price3"></span></strong></span>
        </form>
        </div>
    </div>
</div>
<script>
price1=$("#price1").html().replace(",",'')*1;
price2=$("#price2").html().replace(",",'')*1;
price3=(price1+price2).toFixed(2);
$("#price3").html(price3);
<{if !$consignee.id}>
open_Module("consignee");
<{else}>
	<{if !$invoice.id}>
	open_Module("invoice");
	<{/if}>
<{/if}>
</script>
<div class="clear"></div>
<div id="footer" class="w">
    <{$web_con}><br />
    <{$bt}>
</div>
</body>
</html>